
<script>
	
	import {mapMutations} from "vuex"
	export default {
		methods:{
			...mapMutations(['login'])
		},
		onLaunch: function() {
			console.log('App Launch')
			let result =  uni.getStorageInfoSync('userInfo') || ''
			console.log('xx',result)
			if(result){
				uni.getStorage({
					key:'userInfo',
					success:(res)=>{
						this.login(res.data)
					}
				})
			}
			
			
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		
		
	}
</script>

<style>
	/*每个页面公共css */
	@import “/wxcomponents/vant/common/index.wxss”;
</style>
